package com.moarea.app.controller.system.log;


import com.moarea.app.mybatis.model.PagedObject;
import com.moarea.app.mybatis.model.ReqPagedObject;
import com.moarea.app.service.inter.log.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * 日志
 * 时间：2017-05-22
 * <p>
 * 嵇众
 */
@Controller
@RequestMapping(value = "/LogController")
public class LogController {

    @Autowired
    private ILogService logService;

    @ResponseBody
    @RequestMapping(value = "/selectAllPaged", headers = {"Accept=application/json"})
    public PagedObject<List<Map<String, Object>>> selectAllPaged(@RequestBody ReqPagedObject formValues, HttpSession session) {
        return logService.selectAllPaged(formValues.getData(), formValues.getPage(),
                formValues.getLimit(), formValues.getAllcount());

    }


}